package com.restTemplate.entity;

import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author CKC
 * @DateTime 2021/11/22 20:30
 */
@Component
@ConfigurationProperties(prefix = "rest.info")
@ToString
public class Info {
    Integer age;
    String name;

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
